package cn.org.donald.pojo.entity;

import cn.org.donald.framework.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author Donald
 * @since 2020-11-11
 */
@ApiModel(value="Dictionary对象", description="")
public class Dictionary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典编号")
    private String code;

    @ApiModelProperty(value = "显示文本")
    private String label;

    @ApiModelProperty(value = "字典值")
    private Integer value;

    @ApiModelProperty(value = "父字典编号")
    private String parentCode;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "排序")
    private Integer sort;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
        "code=" + code +
        ", label=" + label +
        ", value=" + value +
        ", parentCode=" + parentCode +
        ", description=" + description +
        ", sort=" + sort +
        "}";
    }
}
